package jpb.module.dao.organize.mapper;

import jpb.module.daomain.member.OrgMem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by haol on 2017/4/8.
 */
@Component
public interface OrganizeMemMapper {

        void add(@Param("member") OrgMem member);

        void delete(@Param("oid") String oid, @Param("memberNum") String memNumber);

        void deleteByOid(@Param("oid") String oid);

        List<String> getNumByOid(@Param("oid") String oid);

        List<String> getNumByDid(@Param("did") Integer did);

        List<String> getNumByOidDid(@Param("oid") String oid,@Param("did") Integer did);

        Integer queryByOidNum(@Param("oid") String oid, @Param("memberNumber") String memberNumber);

        void updateDid(@Param("orgMem") OrgMem orgMem);

        void updatePid(@Param("orgMem") OrgMem orgMem);

}
